package cn.getech.data.metadata.mapper;

import cn.getech.data.development.entity.TableRelationshipEntity;
import cn.getech.data.metadata.entity.meta.CollectionTableField;
import cn.getech.data.metadata.entity.meta.CollectionTableFieldExample;
import cn.getech.data.metadata.model.req.collectiontablefield.CollectiionTableFieldListReq;
import cn.getech.data.metadata.model.res.CollectionTableFieldRes;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CollectionTableField2Mapper extends BaseMapper<CollectionTableField> {
    List<CollectionTableFieldRes> listBy( Map<String,Object> params);

    Integer listByCount( Map<String,Object> params);

    List<Integer> metaEditPermission(@Param("parm") Map<String, Object> req);

    List<CollectionTableFieldRes> selectByTableId( @Param("tableId") Integer tableId);

    //新增血缘关系
    boolean insertTableRelationship(@Param("params") TableRelationshipEntity tableRelationshipEntity);

    //删除血缘关系
    boolean deleteTableRelationship(@Param("param") TableRelationshipEntity tableRelationshipEntity);


}